package bancosys.tec.rtm.diagnostician;

/**
 * Classe para teste do Diagnosticador.
 * 
 * @author Evaristo
 * @version $Id:$ <b>Created on: </b> 01/02/2007
 */
public class MockDiagnostician implements Diagnostician {

    private DiagnosisBean diagnosisBean;

    /**
     * Contrutor para fazer testes que recebe um DiagnosisBean.
     * 
     * @param diagnosisBean DiagnosisBean
     */
    public MockDiagnostician(DiagnosisBean diagnosisBean) {
        this.diagnosisBean = diagnosisBean;
    }

    /**
     * Método que devolve o resultado para teste.
     * 
     * @return DiagnosisBean
     */
    public DiagnosisBean diagnosis() {
        return this.diagnosisBean;
    }

    /**
     * {@inheritDoc}
     */
    public String getName() {
        return "Mock para teste";
    }
}